- frameIndex
- A zero-based index that identifies the frame number in the dataset. If the dataset does not support Multi-frames, this parameter is ignored.
- attributes
- The Modality LUT attributes to set.
- data
- Array of integers that holds the "LUT Data".
- flags
- determines how the modality LUT is stored
Visual Basic (Declaration) | |
---|---|
Overloads Public Sub SetModalityLut( _ ByVal frameIndex As Integer, _ ByVal attributes As DicomModalityLutAttributes, _ ByVal data() As Integer, _ ByVal flags As DicomSetImageFlags _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void SetModalityLut( int frameIndex, DicomModalityLutAttributes attributes, int[] data, DicomSetImageFlags flags ) |
C++/CLI | |
---|---|
public: void SetModalityLut( int frameIndex, DicomModalityLutAttributes^ attributes, array<int>^ data, DicomSetImageFlags flags ) |
Parameters
- frameIndex
- A zero-based index that identifies the frame number in the dataset. If the dataset does not support Multi-frames, this parameter is ignored.
- attributes
- The Modality LUT attributes to set.
- data
- Array of integers that holds the "LUT Data".
- flags
- determines how the modality LUT is stored
This example will initialize a new DICOM command set that supports Multi-frame functional groups Two modality LUT will be added to the dataset at the per frame level The modality LUT from the second frame is retrieved Finally, the modality LUT from the second frame is deleted
Visual Basic | Copy Code |
---|---|
''' |
C# | Copy Code |
---|---|
/// |
If you are trying to set the "Rescale Intercept" (0028,1052) and "Rescale Slope" (0028,1053), set DicomModalityLutAttributes.IsRescaleSlopeIntercept to true, and populate DicomModalityLutAttributes.RescaleIntercept and DicomModalityLutAttributes.RescaleSlope with the new values. You can also populate DicomModalityLutAttributes.RescaleType if you want to set "Rescale Type" (0028,1054).
If you are trying to set the elements under "Modality LUT Sequence", set DicomModalityLutAttributes.IsModalityLutSequence to true, and populate DicomModalityLutAttributes.FirstStoredPixelValueMapped, DicomModalityLutAttributes.NumberOfEntries, DicomModalityLutAttributes.EntryBits, and DicomModalityLutAttributes.LutType. In this case, data should hold the "LUT Data" (0028,3006).
The Multi-frame Functional Groups module may have a Shared Functional Groups Sequence item, and/or a Per-frame Functional Groups Sequence item. Either of these items may have a Pixel Value Transformation Sequence (0028,9145) item. The flags parameter can be used to add or modify existing information in the Pixel Value Transformation Sequence.
The following flags are used only if the Pixel Value Transformation Sequence does not already exist.
(0028,9145) Pixel Value Transformation Sequence child elements
Tag | Name |
(0028,1052) | Rescale Intercept |
(0028,1053) | Rescale Slope |
(0028,1054) | Rescale Type |
For a detailed discussion on Multi-frame Functional Groups see the topic Multi-frame Functional Groups.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family